<body>
  <div id="app"></div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="./my-lib-umd.js"></script>
<script>
  const com = window.myLib.hello
  new Vue({
    el: '#app',
    template: '<hello msg="你是一个优秀的程序员🧑‍💻" />',
    components: {
      hello: com
    }
  })
</script>